import requests

key = '你自己注册之后网站生成的Key（身份标识）'

for page in range(1, 11):
    resp = requests.get(f'http://api.tianapi.com/guonei/index?key={key}&page={page}&num=10')
    for data_dict in resp.json()['newslist']:
        print(data_dict['title'], data_dict['url'])
